<%@page import="com.neiquan.backstage.pub.bsc.dao.po.PlatformArticle"%>
<%@page import="com.neiquan.backstage.platform_article.PlatformArticleService"%>
<%@page import="com.neiquan.backstage.common.CommonService"%>
<%@page import="com.neiquan.backstage.common.util.SpringContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
Integer id = Integer.valueOf(request.getParameter("id"));
ApplicationContext appCtx = SpringContextUtils.getApplicationContext();
CommonService commonService = appCtx.getBean(CommonService.class);
PlatformArticleService articleService = appCtx.getBean(PlatformArticleService.class);
PlatformArticle article = articleService.queryById(id);
pageContext.setAttribute("article", article);
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>干货详情</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/main.css" />
</head>
<body bgcolor="#f0f0f0">
	<section class="mt common_bg">
		<section class="pd">
			<p class="active-title">${pageScope.article.title}</br>
			<time class="active_detail_time"><%=commonService.formatTimestamp(((PlatformArticle)pageContext.getAttribute("article")).getDtCreat(),"yyyy-MM-dd")%></time></p>
			<c:if test="${not empty pageScope.article.imgUrl}">
				<img class="active_detail_pic" width="100%" src="${pageScope.article.imgUrl}" alt="" />
			</c:if>
		</section>
		<p class="active-cont">${pageScope.article.content}</p>
	</section>
</body>
<script src="js/responsive.js"></script>
</html>
